package com.nolon.flange.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "project_table")
data class Project(
    @PrimaryKey(autoGenerate = true) val id: Int,
    val name: String,
    @ColumnInfo(name = "flange_types") val flangeTypes: Int = 0,
    @ColumnInfo(name = "flange_count") val flangeCount: Int = 0,
    @ColumnInfo(name = "has_solution") val hasSolution: Boolean = false,
    @ColumnInfo(name = "solution_count") val solutionCount: Int = 0,
    @ColumnInfo(name = "raw_count") val rawCount: Int = 0,
    @ColumnInfo(name = "usage_rate") val usageRate: Float = 1f,
    @ColumnInfo(name = "total_cost") val totalCost: Float = 0f,
    @ColumnInfo(name = "wast_cost") val wasteCost: Float = 0f,
    val created: Long = System.currentTimeMillis(),
    val modified: Long = System.currentTimeMillis()
)
